@use 'themes' as *;
// Variables
$font-family:
  -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
$max-width: 1280px;
$smaller-max-width: 880px;

// Breakpoints
$breakpoint-sm: 640px;
$breakpoint-md: 768px;
$breakpoint-lg: 1024px;
$breakpoint-xl: 1280px;

// Mixins
@mixin responsive($breakpoint) {
  @if $breakpoint == sm {
    @media (min-width: $breakpoint-sm) {
      @content;
    }
  } @else if $breakpoint == md {
    @media (min-width: $breakpoint-md) {
      @content;
    }
  } @else if $breakpoint == lg {
    @media (min-width: $breakpoint-lg) {
      @content;
    }
  } @else if $breakpoint == xl {
    @media (min-width: $breakpoint-xl) {
      @content;
    }
  }
}

@mixin hover-effect {
  transition: all 0.2s ease;
  &:hover {
    @content;
  }
}

@mixin text-gradient {
  @include themed() {
    background: linear-gradient(to right, themed('primary'), themed('secondary'));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.text-gradient {
  @include text-gradient;
}

// Typography
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 2rem 0 1rem 0;
  line-height: 1.4;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

h4 {
  font-size: 1.1rem;
  font-weight: 500;
}

h5 {
  font-size: 1rem;
  font-weight: 500;
}

h6 {
  font-size: 0.9rem;
  font-weight: 500;
}
